<%@page import="com.dsz.dao.NewscategoryDao"%>
<%@ page language="java" import="java.util.*,com.dsz.entity.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
  <head>
    <base href="<%=basePath%>">
  <title>四色火无限集团</title>
    ﻿<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="format-detection" content="telephone=no">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<meta http-equiv="Cache-Control" content="no-siteapp" />
<link rel="alternate icon" type="image/png" href="images/favicon.png">
<link rel='icon' href='favicon.ico' type='image/x-ico' />
<meta name="description" content="" />
<meta name="keywords" content="" />
<link rel="stylesheet" href="css/default.min.css?t=227" />
<!--[if (gte IE 9)|!(IE)]><!-->
<script type="text/javascript" src="lib/jquery/jquery.min.js"></script>
<!--<![endif]-->
<!--[if lte IE 8 ]>
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="lib/amazeui/amazeui.ie8polyfill.min.js"></script>
<![endif]-->
<script type="text/javascript" src="lib/handlebars/handlebars.min.js"></script>
<script type="text/javascript" src="lib/iscroll/iscroll-probe.js"></script>
<script type="text/javascript" src="lib/amazeui/amazeui.min.js"></script>
<script type="text/javascript" src="lib/raty/jquery.raty.js"></script>
<script type="text/javascript" src="js/main.min.js?t=1"></script>
</head>
<body>
<%Companyinfo comp = (Companyinfo)request.getAttribute("comp"); %>
	<jsp:include page="head.jsp"></jsp:include>
<div>
    <header class="header-article-list">
    
        <div class="article-position">新闻资讯</div>
        
        <ul>
        <%ArrayList<Newscategory> neca = (ArrayList<Newscategory>)request.getAttribute("neca"); 
        for(Newscategory n : neca){%>
            <li><a href="NewsServlet?oid=2&fid=<%=n.getId() %>"><%=n.getName() %></a></li>
            <!-- <li><a href="article_list.jsp">家居百科</a></li>
            <li><a href="article_list.jsp">公司新闻</a></li> -->
            <%} %>
        </ul>
        
        <div class="article-more-btn">
            <a href="NewsServlet?oid=3">MORE &#62; &#62;</a>
        </div>
        
    </header>

    <section class="article-content">
    
   
        <ul>
            <li>
    <% ArrayList<News> lists = (ArrayList<News>)request.getAttribute("dnew");
    int num = 0; 
    for(News n : lists){
    num++;
     String ne = n.getContent();
     if(ne.length()>30){
     ne = ne.substring(0,30)+"...";
     }
    %>
                <div class="article-date">
                    <strong><%=num %></strong>
                    <p><%=n.getUpdateTime() %></p>
                </div>
                <div class="article-info">
                    <a href="NewscategoryServlet?oid=1&n=<%=n.getId()%>">
                        <h3><%=n.getTitle() %></h3>
                        <p><%=ne %></p>
                    </a>
                </div>
 <% }%>
            </li>

          
        </ul>
    </section>
</div>
<jsp:include page="footer.jsp"></jsp:include>
<%-- ﻿<footer>
    <div>
        <div class="footer-info">
            <div class="footer-content">
                <img src="images/qccode.png" alt="">
               <div>
                <p>招商热线:<%=comp.getTel() %></p>
                <div class="footer-box">
                    <i class="icon-tel"></i>
                    <span>公司电话:</span>
                    <span><%=comp.getTel() %></span>
                </div>
                <div class="footer-box">
                    <i class="icon-email"></i>
                    <span>公司邮箱:</span>
                    <span><%=comp.getEmail() %></span>
                </div>
                <div class="footer-box">
                    <i class="icon-address"></i>
                    <span>公司地址:</span>
                    <span><%=comp.getAddress() %></span>
                </div>
               </div>
            </div>
        </div>
        <style>
        .footer-bottom a{color:#F1404B}
        </style>
        <div class="footer-bottom"><div style="text-align:center;color:#fff;line-height:100px;"><span><a href="http://www.haothemes.com/" target="_blank" title="好主题">好主题</a>提供 - More Templates <a href="http://www.cssmoban.com/" target="_blank" title="模板之家">模板之家</a> - Collect from <a href="http://www.cssmoban.com/" title="网页模板" target="_blank">网页模板</a></span></div></div>
    </div>
</footer> --%>
</body>
</html>